From: Moritz Warning Date: Mon, 9 May 2016 18:29:52 +0000 (+0200) Subject: fix check for config existence X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=822d7cd8a85b762acc89a6be55c5ccde910ddfa2;p=feed%2Frouting.git fix check for config existence --- diff --git a/nodogsplash/files/nodogsplash.init b/nodogsplash/files/nodogsplash.init index 1fa0c79..79e7456 100755 --- a/nodogsplash/files/nodogsplash.init +++ b/nodogsplash/files/nodogsplash.init @@ -152,11 +152,11 @@ generate_uci_config() { config_get val "$cfg" config if [ -n "$val" ] ; then - if [ -f "$val" ] ; then + if [ ! -f "$val" ] ; then nolog error "Configuration file '$file' doesn't exist" return 0 fi - cat $val > CONFIGFILE + cat "$val" >> CONFIGFILE fi config_get val "$cfg" network